Passed
Push — master ( 2a550f...39419e )
by Zhenyu
01:34
created

renderer.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
nc 1
dl 0
loc 8
rs 9.4285
c 1
b 0
f 1
nop 3

1 Function

Rating   Name   Duplication   Size   Complexity  
A renderer.js ➔ ... ➔ render 0 4 1
1
/* istanbul ignore next */
2
const enhancedRender = (req, res, next) => {
3
	const originalRender = res.render;
4
	res.render = function render(...args) {
5
		originalRender.apply(this, args);
6
		res.rendered = true;
7
	};
8
	next();
9
};
10
11
export default enhancedRender;
12